<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>EasyTalk Administrator's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="H.Joeson" name="Copyright" />
<link rel="stylesheet" href="<?php echo __PUBLIC__;?>/admin/style.css" type="text/css" media="all" />
<script src="<?php echo __PUBLIC__;?>/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo __PUBLIC__;?>/admin/admin.js" type="text/javascript"></script>
</head>

<body>
<div id="bodymain">
<div class="title"><?php echo ($position); ?></div>
<div class="content">
<div class="infomation"><b>说明：</b>数据表优化可以去除数据文件中的碎片，使记录排列紧密，提高读写速度。</div><br/>
<h3>数据库优化</h3>
<form action='<?php echo SITE_URL;?>/admin.php?s=/Database/dooptimize' method="POST">
<table class="table" style="margin:5px 0 20px 0">
<tr>
    <td width="70px">&nbsp;</td>
    <td width="150px">数据表</td>
    <td width="100px">类型</td>
    <td width="100px">记录数</td>
    <td width="100px">数据</td>
    <td width="100px">索引</td>
    <td>碎片</td>
</tr>
<?php foreach($tbdata as $val){ ?>
    <tr>
        <td><?php echo ($val[0]); ?></td>
        <td><?php echo ($val[1]); ?></td>
        <td><?php echo ($val[2]); ?></td>
        <td><?php echo ($val[3]); ?></td>
        <td><?php echo ($val[4]); ?></td>
        <td><?php echo ($val[5]); ?></td>
        <td><?php echo ($val[6]); ?></td>
    </tr>
<?php } ?>
    <tr>
        <td colspan="7">尺寸 <?php echo sizecount($totalsize);?></td>
    </tr>
    <tr>
        <td><input type="checkbox" checked="checked" onclick="CheckAll('optimizetables', 'chkall')" id="chkall" name="chkall" class="checkbox"> 优化?</td>
        <td colspan="6"><input type="submit" class="button1" value="提交优化"></td>
    </tr>
</table>
</form>
</div>
</div>
</body>
</html>